<?php
$folderName = $_POST['FolderName'];
$submitValue = $_POST['SubmitValue'];

$folderPath = './' . $folderName;

// 检查提交值是否为念程
if ($submitValue === '润哥') {
    // 检查文件夹是否已存在
    if (!is_dir($folderPath)) {
        // 创建文件夹
        if (mkdir($folderPath)) {
            $sourceFile1 = './configurations.php';
            $destinationFile1 = $folderPath . '/configurations.php';
            copy($sourceFile1, $destinationFile1);

            $sourceFile2 = './nc.php';
            $destinationFile2 = $folderPath . '/nc.php';
            copy($sourceFile2, $destinationFile2);

            $sourceFile3 = './Activate.php';
            $destinationFile3 = $folderPath . '/Activate.php';
            copy($sourceFile3, $destinationFile3);

            $sourceFile4 = './delete_file.php';
            $destinationFile4 = $folderPath . '/delete_file.php';
            copy($sourceFile4, $destinationFile4);

            $sourceFile5 = './ncyyds.php';
            $destinationFile5 = $folderPath . '/ncyyds.php';
            if (copy($sourceFile5, $destinationFile5)) {
                echo '19841006';
            }
        }
    }
}
?>
